home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / ugoku / src.lzh / MOVREC / IRCORG.C < prev    next >
C/C++ Source or Header  |  1994-06-01  |  6KB  |  276 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    orgDialogId ;
  9. extern int    orgMesId[8] ;
  10. extern int    orgOkBtnId ;
  11. extern int    orgOkchk() ;
  12. extern int    orgCanBtnId ;
  13. extern int    orgSubDialogId ;
  14. extern int    orgFrameNumId ;
  15. extern int    orgSoundNumId ;
  16. extern int    orgSoundSet() ;
  17. extern int    orgSoundBtnId ;
  18. extern int    orgSoundwriteOK() ;
  19.  
  20. #define ALIGN    4
  21. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  22.  
  23. /*    MMI_init ùpâfü[â^    */
  24.  
  25. /*    âwâbâ_    */
  26.  
  27. MMIINIT    initDataIVDORG = { "MmiInit",  15, 0 } ;
  28.  
  29. /* orgDialogId */
  30.  
  31. static MMIPACKET d001 = {    &orgDialogId,
  32.                             NULL,
  33.                             &MJ_DIALOGL40,
  34.                             OFFSET(DIALOGL40),
  35.                             MS_NONE
  36.                         } ;
  37. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
  38.                              464, 148, 623, 332, 8, 4, 8,
  39.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  40.                             NULL,   0,   0
  41.                         } ;
  42.  
  43. /* orgMesId[0] */
  44.  
  45. static MMIPACKET d002 = {    &orgMesId[0],
  46.                             &orgDialogId,
  47.                             &MJ_MSGL40,
  48.                             OFFSET(MSGL40),
  49.                             MS_NONE
  50.                         } ;
  51. static MSGL40    d002d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  52.                              481, 151, 564, 167, 8,15, 8,
  53.                             MS_NONEL40,
  54.                             "éuéOéOì─ É╢",
  55.                                1,  12,  12,
  56.                             MS_BOLDL40,
  57.                                0,   0
  58.                         } ;
  59.  
  60. /* orgOkBtnId */
  61.  
  62. static MMIPACKET d003 = {    &orgOkBtnId,
  63.                             &orgDialogId,
  64.                             &MJ_DBUTTONL40,
  65.                             OFFSET(DBUTTONL40),
  66.                             MS_NONE
  67.                         } ;
  68. static DBUTTONL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  69.                              480, 301, 537, 324,12, 4, 8,
  70.                             MS_PANELL40 | MS_FRAMEL40,
  71.                             orgOkchk,
  72.                             0x8012
  73.                         } ;
  74.  
  75. /* orgCanBtnId */
  76.  
  77. static MMIPACKET d004 = {    &orgCanBtnId,
  78.                             &orgDialogId,
  79.                             &MJ_DBUTTONL40,
  80.                             OFFSET(DBUTTONL40),
  81.                             MS_NONE
  82.                         } ;
  83. static DBUTTONL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  84.                              551, 301, 608, 324,10, 4, 8,
  85.                             MS_PANELL40 | MS_FRAMEL40,
  86.                             orgOkchk,
  87.                             0x8011
  88.                         } ;
  89.  
  90. /* orgMesId[4] */
  91.  
  92. static MMIPACKET d005 = {    &orgMesId[4],
  93.                             &orgDialogId,
  94.                             &MJ_MSGL40,
  95.                             OFFSET(MSGL40),
  96.                             MS_NONE
  97.                         } ;
  98. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  99.                              488, 305, 531, 321,10,15, 8,
  100.                             MS_NONEL40,
  101.                             "ì─  É╢",
  102.                                1,  12,  12,
  103.                             MS_NONEL40,
  104.                                0,   0
  105.                         } ;
  106.  
  107. /* orgMesId[5] */
  108.  
  109. static MMIPACKET d006 = {    &orgMesId[5],
  110.                             &orgDialogId,
  111.                             &MJ_MSGL40,
  112.                             OFFSET(MSGL40),
  113.                             MS_NONE
  114.                         } ;
  115. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  116.                              558, 305, 601, 321,10,15, 8,
  117.                             MS_NONEL40,
  118.                             "ĵ  Å┴",
  119.                                1,  12,  12,
  120.                             MS_NONEL40,
  121.                                0,   0
  122.                         } ;
  123.  
  124. /* orgSubDialogId */
  125.  
  126. static MMIPACKET d007 = {    &orgSubDialogId,
  127.                             &orgDialogId,
  128.                             &MJ_DIALOGL40,
  129.                             OFFSET(DIALOGL40),
  130.                             MS_NONE
  131.                         } ;
  132. static DIALOGL40    d007d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  133.                              480, 169, 607, 294, 8, 4, 8,
  134.                             MS_DFRAMEL40 | MS_FRAMEL40,
  135.                             NULL,   0,   0
  136.                         } ;
  137.  
  138. /* orgMesId[3] */
  139.  
  140. static MMIPACKET d008 = {    &orgMesId[3],
  141.                             &orgSubDialogId,
  142.                             &MJ_MSGL40,
  143.                             OFFSET(MSGL40),
  144.                             MS_NONE
  145.                         } ;
  146. static MSGL40    d008d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  147.                              491, 178, 550, 195, 0,15, 8,
  148.                             MS_NONEL40,
  149.                             "âtâîü[âÇÉö",
  150.                                1,  12,  12,
  151.                             MS_NONEL40,
  152.                                0,   0
  153.                         } ;
  154.  
  155. /* orgFrameNumId */
  156.  
  157. static MMIPACKET d009 = {    &orgFrameNumId,
  158.                             &orgSubDialogId,
  159.                             &MJ_NUMBOXL40,
  160.                             OFFSET(NUMBOXL40),
  161.                             MS_NONE
  162.                         } ;
  163. static NUMBOXL40    d009d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_FIXEDL40,
  164.                              552, 179, 595, 195, 8, 4, 8,
  165.                             MS_NONEL40,
  166.                             0,
  167.                                1,  12,  12,
  168.                             MS_NONEL40,
  169.                                0,   0,
  170.                                0,   0,9999,   1,   0,
  171.                              263, 264
  172.                         } ;
  173.  
  174. /* orgSoundNumId */
  175.  
  176. static MMIPACKET d010 = {    &orgSoundNumId,
  177.                             &orgSubDialogId,
  178.                             &MJ_NUMBOXL40,
  179.                             OFFSET(NUMBOXL40),
  180.                             MS_NONE
  181.                         } ;
  182. static NUMBOXL40    d010d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  183.                              488, 264, 548, 283, 8, 4, 8,
  184.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  185.                             orgSoundSet,
  186.                                1,  12,  12,
  187.                             MS_NONEL40,
  188.                                0,   0,
  189.                                0,   0,9999,   1,   0,
  190.                              263, 264
  191.                         } ;
  192.  
  193. /* orgSoundBtnId */
  194.  
  195. static MMIPACKET d011 = {    &orgSoundBtnId,
  196.                             &orgSubDialogId,
  197.                             &MJ_DBUTTONL40,
  198.                             OFFSET(DBUTTONL40),
  199.                             MS_NONE
  200.                         } ;
  201. static DBUTTONL40    d011d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  202.                              554, 263, 599, 286,12, 4, 8,
  203.                             MS_PANELL40 | MS_FRAMEL40,
  204.                             orgSoundwriteOK,
  205.                             0x8012
  206.                         } ;
  207.  
  208. /* orgMesId[1] */
  209.  
  210. static MMIPACKET d012 = {    &orgMesId[1],
  211.                             &orgSubDialogId,
  212.                             &MJ_MSGL40,
  213.                             OFFSET(MSGL40),
  214.                             MS_NONE
  215.                         } ;
  216. static MSGL40    d012d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  217.                              490, 198, 606, 215, 0,15, 8,
  218.                             MS_NONEL40,
  219.                             "ûêòb8.6âtâîü[âÇ",
  220.                                1,  12,  12,
  221.                             MS_NONEL40,
  222.                                0,   0
  223.                         } ;
  224.  
  225. /* orgMesId[2] */
  226.  
  227. static MMIPACKET d013 = {    &orgMesId[2],
  228.                             &orgSubDialogId,
  229.                             &MJ_MSGL40,
  230.                             OFFSET(MSGL40),
  231.                             MS_NONE
  232.                         } ;
  233. static MSGL40    d013d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  234.                              490, 219, 605, 236, 0,15, 8,
  235.                             MS_NONEL40,
  236.                             "160ü~120âhâbâg",
  237.                                1,  12,  12,
  238.                             MS_NONEL40,
  239.                                0,   0
  240.                         } ;
  241.  
  242. /* orgMesId[6] */
  243.  
  244. static MMIPACKET d014 = {    &orgMesId[6],
  245.                             &orgSubDialogId,
  246.                             &MJ_MSGL40,
  247.                             OFFSET(MSGL40),
  248.                             MS_NONE
  249.                         } ;
  250. static MSGL40    d014d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  251.                              489, 240, 562, 257, 0,15, 8,
  252.                             MS_NONEL40,
  253.                             "ë╣É║é╠ɵæùéΦ",
  254.                                1,  12,  12,
  255.                             MS_NONEL40,
  256.                                0,   0
  257.                         } ;
  258.  
  259. /* orgMesId[7] */
  260.  
  261. static MMIPACKET d015 = {    &orgMesId[7],
  262.                             &orgSubDialogId,
  263.                             &MJ_MSGL40,
  264.                             OFFSET(MSGL40),
  265.                             MS_NONE
  266.                         } ;
  267. static MSGL40    d015d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  268.                              561, 266, 593, 283, 8,15, 8,
  269.                             MS_NONEL40,
  270.                             "É▌ ÆΦ",
  271.                                1,  12,  12,
  272.                             MS_NONEL40,
  273.                                0,   0
  274.                         } ;
  275.  
  276.